<template>
	<view>
		<u-sticky bgColor="#6492FF" offsetTop=0 customNavHeight=0>
			<navbox title="详情"></navbox>
		</u-sticky>
		<view class="con">
			<view class="con__box">
				<view class="con__title">
					{{info.noticeTitle}}
				</view>
				<u-parse :content="info.noticeContent" selectable></u-parse>
			</view>
		</view>
	</view>
</template>

<script>
	import {noticedetail} from '@/api/home.js'
	export default {
		data() {
			return {
				info:{}
			};
		},
		onLoad(option) {
			noticedetail(option.id).then(res=>{
				if(res.data.code==200){
					this.info=res.data.data
				}
			})
		}
	}
</script>

<style lang="scss">
page{
	background-color: #f6f6f6;
}
.con{
	padding: 25rpx 16rpx;
	
	&__box{
		background-color: #fff;
		padding: 25rpx 16rpx;
		border-radius: 20rpx;
	}
	&__title{
		text-align: center;
		font-size: 30rpx;
		font-weight: bold;
	}
}
</style>
